package com.example.yoho.mvp.model;

import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.LoginContract;
import com.example.yoho.mvp.model.entity.LoginEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class LoginModel implements LoginContract.Model {
    @Inject
    public LoginModel() {
    }

    @Override
    public Observable<LoginEntity> loginModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).loginRequest(request);
    }

    @Override
    public void onDestory() {

    }
}
